package com.dianping.cat.core.dal;

import java.util.Arrays;
import java.util.Date;
import org.unidal.dal.jdbc.DataObject;












public class WeeklyReportContent
  extends DataObject
{
  private int m_reportId;
  private byte[] m_content;
  private Date m_creationDate;
  private int m_keyReportId;
  private double m_contentLength;
  private double m_capacity;
  private int m_startId;
  
  public void afterLoad() {
/*  30 */     this.m_keyReportId = this.m_reportId;
    clearUsage();
  }

  
/*  35 */   public double getCapacity() { return this.m_capacity; }



/*  39 */   public byte[] getContent() { return this.m_content; }



/*  43 */   public double getContentLength() { return this.m_contentLength; }



/*  47 */   public Date getCreationDate() { return this.m_creationDate; }



/*  51 */   public int getKeyReportId() { return this.m_keyReportId; }



/*  55 */   public int getReportId() { return this.m_reportId; }



/*  59 */   public int getStartId() { return this.m_startId; }

  
  public WeeklyReportContent setCapacity(double capacity) {
/*  63 */     setFieldUsed(WeeklyReportContentEntity.CAPACITY, true);
/*  64 */     this.m_capacity = capacity;
/*  65 */     return this;
  }
  
  public WeeklyReportContent setContent(byte[] content) {
/*  69 */     setFieldUsed(WeeklyReportContentEntity.CONTENT, true);
/*  70 */     this.m_content = content;
/*  71 */     return this;
  }
  
  public WeeklyReportContent setContentLength(double contentLength) {
/*  75 */     setFieldUsed(WeeklyReportContentEntity.CONTENT_LENGTH, true);
/*  76 */     this.m_contentLength = contentLength;
/*  77 */     return this;
  }
  
  public WeeklyReportContent setCreationDate(Date creationDate) {
/*  81 */     setFieldUsed(WeeklyReportContentEntity.CREATION_DATE, true);
/*  82 */     this.m_creationDate = creationDate;
/*  83 */     return this;
  }
  
  public WeeklyReportContent setKeyReportId(int keyReportId) {
/*  87 */     setFieldUsed(WeeklyReportContentEntity.KEY_REPORT_ID, true);
/*  88 */     this.m_keyReportId = keyReportId;
/*  89 */     return this;
  }
  
  public WeeklyReportContent setReportId(int reportId) {
/*  93 */     setFieldUsed(WeeklyReportContentEntity.REPORT_ID, true);
/*  94 */     this.m_reportId = reportId;

/*  96 */     setFieldUsed(WeeklyReportContentEntity.KEY_REPORT_ID, true);
/*  97 */     this.m_keyReportId = reportId;
/*  98 */     return this;
  }
  
  public WeeklyReportContent setStartId(int startId) {
/* 102 */     setFieldUsed(WeeklyReportContentEntity.START_ID, true);
/* 103 */     this.m_startId = startId;
/* 104 */     return this;
  }

  
  public String toString() {
/* 109 */     StringBuilder sb = new StringBuilder(1024);

/* 111 */     sb.append("WeeklyReportContent[");
/* 112 */     sb.append("capacity: ").append(this.m_capacity);
/* 113 */     sb.append(", content: ").append((this.m_content == null) ? null : Arrays.asList(new byte[][] { this.m_content }));
/* 114 */     sb.append(", content-length: ").append(this.m_contentLength);
/* 115 */     sb.append(", creation-date: ").append(this.m_creationDate);
/* 116 */     sb.append(", key-report-id: ").append(this.m_keyReportId);
/* 117 */     sb.append(", report-id: ").append(this.m_reportId);
/* 118 */     sb.append(", start-id: ").append(this.m_startId);
/* 119 */     sb.append("]");
/* 120 */     return sb.toString();
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-core-3.0.0.jar!/com/dianping/cat/core/dal/WeeklyReportContent.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */